// 引入express
const express = require('express');
// 创建应用实例
const app = express();

app.get('', function (request, response) {
    var url = request.url;
    console.log(
        "获取anti_content值为: %s", request.query.parm1
    );
    response.send(request.query)
});


// 监听8000端口并在运行成功后向控制台输入服务器启动成功！
const server = app.listen(8000,'localhost',function () {
    let host = server.address().address;
    let port = server.address().port;
    console.log(
        "node服务启动，监听地址为: http://%s:%s", host, port
    )
});